---
page_title: "cloudflare_accounts Data Source - Cloudflare"
subcategory: ""
description: |-
  Data source for looking up Cloudflare Accounts.
---

# cloudflare_accounts (Data Source)

Data source for looking up Cloudflare Accounts.

## Example Usage

```terraform
data "cloudflare_accounts" "example" {
  name = "example account"
}
```
<!-- schema generated by tfplugindocs -->
## Schema

### Optional

- `name` (String) The account name to target for the resource.

### Read-Only

- `accounts` (List of Object) (see [below for nested schema](#nestedatt--accounts))
- `id` (String) The ID of this resource.

<a id="nestedatt--accounts"></a>
### Nested Schema for `accounts`

Read-Only:

- `enforce_twofactor` (Boolean)
- `id` (String)
- `name` (String)
- `type` (String)


